<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://www.springframework.org/security/tags"  prefix="security"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>首页</title>
</head>
<body>

	<h1>首页--需要登录</h1>
	<!-- 可以使用的属性 ： authorities Credentials details principal四个 -->
	<h2>欢迎您，<security:authentication property="principal.username"/> </h2>
	
	<a href="${pageContext.request.contextPath }/logout">注销</a>
</body>
</html>